package com.example.pkmedical.Activity.warning;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;

import com.example.pkmedical.APP.AppManager;
import com.example.pkmedical.APP.MyApp;
import com.example.pkmedical.Base.BaseActivity;
import com.example.pkmedical.R;
import com.example.pkmedical.Utils.CommandUtil;
import com.example.pkmedical.Utils.FinishActivityManager;
import com.example.pkmedical.Utils.SerialProtUtil;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class WarningCenterActivity extends BaseActivity {

    @BindView(R.id.headtilt_closebt)
    Button headtiltClosebt;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_headtilt);
        ButterKnife.bind(this);
    }

    @Override
    public void initData() {

    }

    @Override
    public void initView() {
        SerialProtUtil.getInstance().sendBytes200(2, CommandUtil.HEAD_OPEN_DIDI);
        FinishActivityManager.getManager().addActivity(this);
    }

    @Override
    public void initPresenter() {

    }

    @Override
    public void showDialog(String... msg) {

    }

    @OnClick(R.id.headtilt_closebt)
    public void onViewClicked() {
        CommandUtil.HEAD_WARNING_TYPE = 0;
        SerialProtUtil.getInstance().sendBytes50(2, CommandUtil.HEAD_CLOSE_DIDI);
        WarningCenterActivity.this.finish();
    }
}
